repo: Remove set-but-unused variable
authorColin Walters <walters@verbum.org>
Tue, 15 Oct 2013 20:41:07 +0000 (16:41 -0400)
committerColin Walters <walters@verbum.org>
Tue, 15 Oct 2013 20:44:19 +0000 (16:44 -0400)
The gpgme examples use this, but from what I can tell we don't really
need to because we don't need detailed results; we only care whether
we signed it at all.

src/libostree/ostree-repo.c

index ebc10f28f88d268866aec7c88bed51dd829f74a7..34bd1e88cda9b145239274d6d517fa83d87a1b84 100644 (file)
@@ -1502,7 +1502,6 @@ ostree_repo_sign_commit (OstreeRepo     *self,
   gpgme_data_t commit_buffer = NULL;
   gpgme_data_t signature_buffer = NULL;
   int signature_fd = -1;
-  gpgme_sign_result_t result;
   GMappedFile *signature_file = NULL;
   
   if (!ostree_repo_load_variant (self, OSTREE_OBJECT_TYPE_COMMIT,
@@ -1595,8 +1594,6 @@ ostree_repo_sign_commit (OstreeRepo     *self,
       goto out;
     }
   
-  result = gpgme_op_sign_result (context);
-
   if (!g_output_stream_close (tmp_signature_output, cancellable, error))
     goto out;